html,
body {
    height: 100%;
}

#banner {
    background-color: rgb(255, 255, 255);
    border-bottom: 0;
}

@mixin spanStyle() {
    cursor: pointer;
    display: inline-block;
    width: 24px;
    height: 25px;
    overflow: hidden;
}

@mixin spanBackground($a:-83px) {
    background: url(../../img/ico_righttabs.png) no-repeat 0 $a;
}

@mixin rightNav_Element($topp:60px) {
    position: absolute;
    top: $topp;
    text-align: center;
}

#banner {
    .flextop {
        display: flex;
        width: 1200px;
        justify-content: space-between;
    }
    .leftLogo {
        display: inline-block;
        width: 80px;
        height: 80px;
        background: url(../../img/logo.png) no-repeat;
        background-size: 100%;
    }
}

#myLeftNav {
    position: fixed;
    top: calc(60%);
    margin-top: -225px;
    left: 70px;
    display: none;
    overflow: hidden;
    li {
        list-style: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
        padding: 5px 3px;
        font-size: 17px;
        text-align: center;
        border: 2px solid #ccc;
        border-top: 0px;
        color: rgb(70, 70, 70);
        font-size: 14px;
        &:hover {
            color: rgba(17, 0, 255, 0.5)
        }
    }
}

.active {
    background-color: rgb(255, 102, 0)
}

#rightNav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 40px;
    background-color: rgb(82, 82, 82);
    text-align: center;
    z-index: 1000;
    p {
        width: 40px;
        text-align: center;
        position: relative;
        z-index: 1200;
        margin-bottom: 30px;
        &:hover {
            background: rgba(0, 0, 0, 0.8);
            i {
                visibility: visible;
                opacity: 1;
                transform: translateX(12px);
            }
        }
    }
    i {
        position: absolute;
        text-align: center;
        height: 100%;
        width: 80px;
        top: 0;
        left: -92px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        z-index: -2500;
        transition: all 0.3s;
        visibility: hidden;
        opacity: 0;
    }
    .rightNav_Top {
        @include rightNav_Element(60px);
        span {
            @include spanStyle();
        }
        p:nth-of-type(1) {
            span {
                @include spanBackground();
            }
        }
        p:nth-of-type(2) {
            span {
                @include spanBackground(-108px);
            }
        }
    }
    .rightNav_Mid {
        @include rightNav_Element(300px);
        span {
            @include spanStyle();
        }
        p:nth-of-type(1) {
            span {
                @include spanBackground(-132px);
                height: 24px
            }
        }
        p:nth-of-type(2) {
            .showmyNum {
                display: inline-block;
                width: 100%;
                padding: 0 5px;
                box-sizing: border-box;
                height: 18px;
                border-radius: 9px;
                text-align: center;
                background-color: #c7181d;
                color: white;
                font-weight: normal;
                font-size: 12px;
            }
            span {
                @include spanBackground(-157px);
            }
        }
        p:nth-of-type(3) {
            span {
                @include spanBackground(-181px);
                height: 23px
            }
        }
        p:nth-of-type(4) {
            span {
                @include spanBackground(-203px);
            }
        }
    }
    .rightNav_Bottom {
        display: none;
        @include rightNav_Element(700px);
        p {
            span {
                @include spanStyle();
                @include spanBackground(-275px);
            }
        }
    }
}

@mixin sameSearch($width: 100%, ) {
    .searchPart_top {
        position: relative;
        top: 1px;
        width: $width;
        height: 44px;
        line-height: 44px;
        .showSearch {
            position: absolute;
            top: 46px;
            left: 0;
            width: 455px;
            height: auto;
            border: 1px solid rgb(218, 218, 218);
            display: none;
            border-top: 0;
            z-index: 600;
            background: white;
            ul {
                width: 100%;
                list-style: none;
                display: none;
                max-height: 362px;
                overflow: hidden;
                li {
                    display: flex;
                    justify-content: space-between;
                    width: 100%;
                    height: 36px;
                    line-height: 36px;
                    font-size: 15px;
                    span:nth-of-type(1) {
                        padding-left: 10px;
                        color: black;
                        font-size: 13px;
                        font-weight: 500;
                    }
                    span:nth-of-type(2) {
                        padding-right: 10px;
                        color: rgb(63, 63, 63);
                        font-size: 12px;
                    }
                    &:hover {
                        background-color: rgb(235, 235, 235);
                        span:nth-of-type(1) {
                            padding-left: 10px;
                            color: #c7181d;
                            font-size: 13px;
                        }
                    }
                }
            }
        }
        button {
            width: 16%;
            height: 44px;
            line-height: 44px;
            outline: none;
            border: 0px;
            cursor: pointer;
            vertical-align: middle;
            margin-left: -10px;
            background: #c7181d url(../../img/header_1407.png) -370px -41px;
        }
        .search {
            text-indent: 10px;
            width: 83%;
            height: 38px;
            line-height: 38px;
            outline: none;
            border: 3px solid rgb(201, 2, 2);
            font-size: 13px;
            vertical-align: middle;
        }
    }
}

.searchPart {
    width: 490px;
    .searchPart_bottom {
        width: 100%;
        height: 44px;
        line-height: 44px;
    }
    @include sameSearch();
    .fixmenu {
        position: fixed;
        top: 3px;
        left: 465px;
        width: 490px;
        z-index: 5001;
    }
    a {
        font-size: 12px;
        display: inline-block;
        padding: 0 2px;
        color: rgb(61, 61, 61);
        &:hover {
            text-decoration: underline;
        }
        &:nth-of-type(1),
        &:nth-of-type(2) {
            color: rgb(201, 2, 2);
        }
    }
}

.goCart {
    cursor: pointer;
    border: 1px solid rgb(117, 117, 117);
    height: 45px;
    line-height: 45px;
    text-align: center;
    width: 170px;
    span:nth-of-type(1) {
        padding-left: 20px;
        background: url(../../img/header_1407.png) no-repeat -10px -94px;
        font-size: 13px;
    }
    i:nth-of-type(1) {
        color: #ccc;
        padding: 0 10px
    }
    span:nth-of-type(2) {
        color: #c7181d;
        font-size: 15px;
        padding-left: 5px;
    }
    i:nth-of-type(2) {
        display: inline-block;
        width: 20px;
        height: 17px;
        background: url(../../img/header_1407.png) no-repeat -129px -92px;
    }
}

#nav {
    width: 100%;
    background: rgb(159, 45, 25);
    .midNav {
        font-size: 0px;
        height: 38px;
        line-height: 38px;
        a {
            color: white;
            font-size: 16px;
            padding: 0 15px;
            display: inline-block;
            height: 38px;
            line-height: 38px;
            vertical-align: middle;
            white-space: nowrap;
            &:nth-of-type(1) {
                width: 157px;
                height: 38px;
                line-height: 38px;
                background: url(../../img/sprite_category.png) no-repeat 0 -19px;
                overflow: hidden;
                &:hover {
                    background: url(../../img/sprite_category.png) no-repeat 0 -79px;
                    ;
                }
            }
            &:hover {
                background: #700407;
            }
        }
    }
    @mixin showli_i($x:0px, $y:0px) {
        background: url(../../img/sprite_category.png) no-repeat $x $y;
    }
    .showNav_showlunbo {
        background: rgb(240, 240, 240);
        height: 452px;
        .secondNav {
            position: relative;
            z-index: 1000;
            ul {
                position: absolute;
                top: 0;
                left: 0;
                width: 187px;
                height: 452px;
                list-style-type: none;
                background: rgba(255, 255, 255, 0.9);
                border: 0px;
                &::after {
                    content: "";
                    display: block;
                    clear: both;
                }
                li {
                    padding: 9px 0;
                    padding-left: 20px;
                    font-size: 13px;
                    color: rgb(80, 79, 79);
                    // &:hover {
                    //     background: white;
                    //     box-shadow: 0px 2px 3px 0 #ccc;
                    //     i {
                    //         transition: all 1s;
                    //         transform: rotate(360deg);
                    //         transform-origin: 50% 50%;
                    //     }
                    // }
                }
                a {
                    padding-left: 8px;
                    cursor: pointer;
                    color: rgb(80, 79, 79);
                    &:active {
                        color: rgb(80, 79, 79);
                    }
                    &:hover {
                        color: #c90108;
                        text-decoration: underline;
                    }
                }
                i {
                    display: inline-block;
                    width: 16px;
                    height: 16px;
                    vertical-align: bottom;
                }
            }
        }
    }
    .SecondNavContent {
        top: 0px;
        left: 186px;
        width: 1014px;
        height: 452px;
        background: white;
        position: absolute;
        display: none;
        overflow: hidden;
        box-shadow: 2px 2px 4px 0 #ccc;
        div.samediv {
            display: none;
            width: 100%;
            height: 100%;
            font-size: 0;
            .leftShow {
                vertical-align: top;
                display: inline-block;
                width: 70%;
                box-sizing: border-box;
                p {
                    width: 100%;
                    line-height: 23px;
                    font-size: 0px;
                    padding: 5px 0;
                }
                strong {
                    display: inline-block;
                    width: 17%;
                    font-size: 14px;
                    line-height: 23px;
                    text-align: center;
                    vertical-align: top;
                }
                span {
                    display: inline-block;
                    width: 79%;
                    font-size: 13px;
                }
            }
            .rightShow {
                display: inline-block;
                width: 30%;
                box-sizing: border-box;
                img {
                    padding: 2px 0;
                }
            }
        }
    }
    .curBanner {
        width: 1200px;
        margin: 0 auto;
        overflow: hidden;
        position: relative;
        .pc-banner {
            margin-left: -725px;
        }
        .swiper-pagination {
            position: absolute;
            bottom: 5%;
            left: 50%;
            margin-left: -20px;
        }
        .swiper-pagination-bullet {
            margin: 0 3px;
            width: 15px;
            height: 15px;
        }
        .swiper-button-prev {
            left: 20%;
            display: none;
        }
        .swiper-button-next {
            right: 5%;
            display: none;
        }
        &:hover {
            .swiper-button-prev,
            .swiper-button-next {
                display: block;
            }
        }
    }
}

#content {
    background: rgb(245, 244, 244);
    padding-top: 5px;
    .content_top {
        margin-top: 15px;
        background: white
    }
    .tabchange {
        font-size: 0;
        z-index: 500;
        border-bottom: 1px solid rgb(241, 241, 241);
        .active_span {
            background: rgba(253, 29, 29, 0.1)
        }
        span {
            display: inline-block;
            width: 20%;
            text-align: center;
            line-height: 50px;
            height: 50px;
            font-size: 18px;
            color: black;
        }
        i {
            display: inline-block;
            line-height: 25px;
            height: 25px;
            width: 25px;
            background: url(../../img/sprite_category.png) no-repeat -26px -138px;
            vertical-align: middle;
        }
        i:nth-of-type(2) {
            background: url(../../img/sprite_category.png) no-repeat 0px -138px;
        }
    }
    .tabcontent {
        width: 100%;
        height: 330px;
        position: relative;
        overflow: hidden;
        ul {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 330px;
            display: flex;
            flex-wrap: wrap;
            position: absolute;
            top: 0;
            left: 0;
            list-style: none;
            li {
                width: 20%;
                height: 330px;
                box-sizing: border-box;
                border-left: 1px solid rgb(241, 241, 241);
                perspective: 1000px;
                transform-style: preserve-3d;
                transition: all 0.6s;
                &:nth-of-type(6n),
                &:nth-of-type(1) {
                    border-left: 0;
                }
                &:hover {
                    box-shadow: -2px 4px 12px 0 #ccc;
                    transform: translateZ(3000px) translateY(-8px);
                }
            }
            img {
                width: 100%;
                height: 240px;
            }
            p {
                text-align: center;
                width: 100%;
                padding: 6px;
                box-sizing: border-box;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }
            p:nth-of-type(1) {
                color: black;
            }
            p:nth-of-type(2) {
                color: #c7181d;
                font-size: 18px;
            }
        }
    }
    .filterchange {
        &:hover {
            filter: grayscale(25%);
        }
    }
    .bottomSearch {
        position: fixed;
        top: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.9);
        width: 100%;
        height: 55px;
        line-height: 55px;
        z-index: 5000;
        display: none;
        .wrapper {
            display: flex;
            a {
                display: inline-block;
                width: 70px;
                height: 40px;
                margin-top: 5px;
                margin-right: 208px;
                background: url(../../img/zjl_icon_002.png) no-repeat;
            }
            @include sameSearch(490px);
        }
    }
}

.goodsTop {
    display: flex;
    width: 100%;
    justify-content: space-between;
    p {
        margin: 15px 0;
    }
    p:nth-of-type(1) {
        span {
            font-size: 25px;
            color: rgb(253, 135, 0);
            font-weight: bold;
        }
        a {
            vertical-align: middle;
            padding: 0 8px;
            color: rgb(161, 161, 161);
            &:hover {
                color: #c7181d
            }
        }
    }
    p:nth-of-type(2) {
        line-height: 32px;
        a {
            padding-top: 12px;
            color: rgb(63, 62, 62);
            &:hover {
                color: #ff3dc5
            }
        }
    }
}

@mixin showLi($li_height:267px, $img_height:195px, $li_weight:24%) {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    justify-content: space-between;
    li {
        width: $li_weight;
        height: $li_height;
        background: white;
        margin-bottom: 15px;
        overflow: hidden;
        perspective: 1000px;
        transform-style: preserve-3d;
        transition: all 0.6s;
        &:hover {
            box-shadow: 0px 6px 12px 0 #ccc;
            transform: translateZ(3000px) translateY(-4px);
        }
        img {
            width: 100%;
            height: $img_height;
        }
        p {
            text-align: center;
            width: 100%;
            padding: 6px;
            box-sizing: border-box;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        p:nth-of-type(1) {
            color: black;
        }
        p:nth-of-type(2) {
            color: #c7181d;
            font-size: 18px;
        }
    }
}

.goodsShow {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
    a.leftImage {
        display: inline-block;
        width: 270px;
        height: 550px;
        img {
            width: 100%;
            height: 100%;
        }
    }
    ul {
        width: 915px;
        height: 550px;
        @include showLi();
    }
}

.showAllGoods {
    width: 100%;
    .lookGoods {
        width: 100%;
        text-align: center;
        font-size: 25px;
        padding: 40px 0;
        color: rgb(7, 7, 7);
        font-weight: bold;
    }
    .end {
        width: 100%;
        text-align: center;
        font-size: 26px;
        color: rgb(184, 184, 184);
        padding: 50px 0;
    }
    .lastGooodsShow {
        width: 100%;
        ul {
            width: 100%;
            height: auto;
            @include showLi(360px, 270px, 19%);
        }
    }
}